package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author Don
 * @date 2020/07/13
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 树形结构列表
     *
     * @return {@link List<CategoryEntity>}
     */
    List<CategoryEntity> listWithTree();

    /**
     * 删除菜单 ids
     *
     * @param catIds id列表
     * @return int
     */
    int removeMenuByIds(List<Long> catIds);
}
